home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Esportes / 681.swf / scripts / DefineButton2_104 / BUTTONCONDACTION on(press, keyPress Space).as
Text File  |  2006-06-13  |  999b  |  26 lines

  1. on(press, keyPress "<Space>"){
  2.    if(_root.objSliders.objSliderTop.slide == 1)
  3.    {
  4.       _root.objSliders.objSliderTop.slide = 0;
  5.       _root.objSliders.objSliderRight.slide = 1;
  6.    }
  7.    else if(_root.objSliders.objSliderRight.slide == 1)
  8.    {
  9.       _root.objSliders.objSliderTop.slide = 0;
  10.       _root.objSliders.objSliderRight.slide = 0;
  11.       duplicateMovieClip(_root.objDartc,"objDart3",16487);
  12.       _root.objDart3._x = _root.movBoard._x + (Math.random() * 10 - 5) + _root.objSliders.objSliderTop._x * 4;
  13.       _root.objDart3._y = _root.movBoard._y + (Math.random() * 10 - 5) + _root.objSliders.objSliderRight._y * 4;
  14.       _root.runningTotal += _root.CalculateScore(_root.objDart3._x,_root.objDart3._y);
  15.       txtScore1 = runningTotal;
  16.       if(1 >= _root.RemainingScore1 - _root.runningTotal)
  17.       {
  18.          _root.gotoAndStop(5);
  19.       }
  20.       txtRemaining1 = RemainingScore1 - runningTotal;
  21.       Darts1++;
  22.       txtDarts1 = Darts1;
  23.       gotoAndStop(25);
  24.    }
  25. }
  26.